﻿using System;

namespace ScriptEngine.Script.Executor
{
	public interface IScriptFuncExecutor
	{
		/// <summary>
		/// 运行脚本环境中返回值的方法
		/// </summary>
		/// <typeparam name="T">返回值类型</typeparam>
		/// <param name="funcName">方法名</param>
		/// <param name="args">参数信息</param>
		/// <returns>返回值</returns>
		T ExeFunc<T>(string funcName, params object[] args);


		/// <summary>
		/// 运行脚本环境中无返回值的函数
		/// </summary>
		/// <param name="funcName">方法名</param>
		/// <param name="args">参数信息</param>
		void ExecFunc(string funcName, params object[] args);
	}
}
